package com.gopay.common.domain.dps;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.gopay.common.domain.BaseEntity;
/**
 * 钱包推广活动表
 * @author TangYang
 *
 */
@Entity
@Table(name = "WA_PROMOTIONS_LOG")
public class WaPromotionsLog extends BaseEntity {
	private static final long serialVersionUID = -3084046029040489L;
    
	private Integer id;
	private String custId;
	private String custMob;
	private String type;
	private BigDecimal reward;
	private Date createTime;
	private String condition1;
	private String condition2;
	private String condition3;
	private String gopayOrderId;
	@Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "WA_PROMOTIONS_LOG_SEQ")
    @SequenceGenerator(name = "WA_PROMOTIONS_LOG_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "WA_PROMOTIONS_LOG_SEQ")

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "CUST_ID", length = 10)
	public String getCustId() {
		return custId;
	}
	public void setCustId(String custId) {
		this.custId = custId;
	}
	@Column(name = "CUST_MOB", nullable = false, length = 11)
	public String getCustMob() {
		return custMob;
	}
	public void setCustMob(String custMob) {
		this.custMob = custMob;
	}
	@Column(name = "TYPE", nullable = false, length = 2)
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "REWARD", precision = 20)
	public BigDecimal getReward() {
		return reward;
	}
	public void setReward(BigDecimal reward) {
		this.reward = reward;
	}
	@Column(name = "CREATE_TIME", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "CONDITION1", nullable = false, length = 50)
	public String getCondition1() {
		return condition1;
	}
	public void setCondition1(String condition1) {
		this.condition1 = condition1;
	}
	@Column(name = "CONDITION2", length = 50)
	public String getCondition2() {
		return condition2;
	}
	public void setCondition2(String condition2) {
		this.condition2 = condition2;
	}
	@Column(name = "CONDITION3", length = 50)
	public String getCondition3() {
		return condition3;
	}
	public void setCondition3(String condition3) {
		this.condition3 = condition3;
	}	
    @Column(name = "GOPAY_ORDER_ID", length = 30)
    public String getGopayOrderId() {
        return this.gopayOrderId;
    }
    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }

	@Override
	public String toString() {
		return "WaPromotionsLog [id=" + id + ", custId=" + custId + ", custMob=" + custMob + ", type=" + type
				+ ", reward=" + reward + ", createTime=" + createTime + ", condition1=" + condition1 + ", condition2="
				+ condition2 + ", condition3=" + condition3 + ", gopayOrderId=" + gopayOrderId + "]";
	}
	
	
}
